package com.derbysoft.defender.mp.api.request;

/**
 * <p>文本消息</p>
 * <pre>
 * {
 * "touser":"OPENID",
 * "msgtype":"text",
 * "text":
 * {
 * "content":"Hello World"
 * }
 * }
 *
 * </pre>
 * Created by Afee Lee on 2017-03-21 22:18
 *
 * @author Afee Lee
 * @version 1.0
 * @see Object
 * @since 1.8
 */
public class TextMessage extends Message {
    private Text text;

    public TextMessage(String touser, Text text) {
        super(touser, "text");
        this.text = text;
    }

    public Text getText() {
        return text;
    }

    public void setText(Text text) {
        this.text = text;
    }

    public static class Text {
        private String content;

        public Text(String content) {
            this.content = content;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }
    }
}
